package cn.jit.po;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class User {
	private Integer userId;
	private String username;
	private String truename;
	private String password;
	private Integer gender;
	private String phone;
	private String email;
	private Date birthday;
	private String job;
	private String photoUrl;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;
	private Date leaveTime;
	private Integer type;
	private Date lastLoginTime;
	private Integer isActive;

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getPhotoUrl() {
		return photoUrl;
	}

	public void setPhotoUrl(String photoUrl) {
		this.photoUrl = photoUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLeaveTime() {
		return leaveTime;
	}

	public void setLeaveTime(Date leaveTime) {
		this.leaveTime = leaveTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Integer getIsActive() {
		return isActive;
	}

	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}

	@Override
	public String toString() {
		return "User [userId=" + userId + ", username=" + username + ", truename=" + truename + ", password=" + password
				+ ", gender=" + gender + ", phone=" + phone + ", email=" + email + ", birthday=" + birthday + ", job="
				+ job + ", photoUrl=" + photoUrl + ", createTime=" + createTime + ", leaveTime=" + leaveTime + ", type="
				+ type + ", lastLoginTime=" + lastLoginTime + ", isActive=" + isActive + "]";
	}

}
